import request from "@/utils/request";

// 获取销售额统计
export function getSalesAmountStatistics(data) {
  return request({
    url: "/shop/statistics/getSalesAmountStatistics",
    method: "post",
    data: data,
  });
}

// 获取退款额统计
export function getRefundAmountStatistics(data) {
  return request({
    url: "/shop/statistics/getRefundAmountStatistics",
    method: "post",
    data: data,
  });
}

// 获取销售额详细记录
export function getSalesAmountDetailListByDate(data) {
  return request({
    url: "/shop/statistics/getSalesAmountDetailListByDate",
    method: "post",
    data: data,
  });
}

// 获取退款额详细记录
export function getRefundAmountDetailListByDate(data) {
  return request({
    url: "/shop/statistics/getRefundAmountDetailListByDate",
    method: "post",
    data: data,
  });
}

// 获取首页统计数据
export function getHomePageInfo() {
  return request({
    url: "/shop/statistics/getHomePageInfo",
    method: "get",
  });
}

// 获取所有的车型号
export function getModelListUrl() {
  return request({
    url: "/shop/statistics/getModelListUrl",
    method: "get",
  });
}
